<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="/js/axios.min.js"></script>
  <script src="/js/util.js"></script>
  <script>
    function uploadExcel(){
       var formObj = new FormData();
       formObj.append("excelFile",$("excelFile").files[0]);
      let config = {
        headers: {'Content-Type': 'multipart/form-data' }
      }

      axios.post("/user/uploadExcel",formObj,config).then(resp =>{
        alert(resp.data);
      })

    }
  </script>
</head>
<body>
    请选择excel：<input type="file" id="excelFile"><br>
        <input type="button" value="上传" onclick="uploadExcel()">
</body>
</html>